//
//  ListTableViewCell.m
//  Double
//
//  Created by 孟令博 on 15/5/26.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "ListTableViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation ListTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.indexLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.indexLabel];
        [self.indexLabel release];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.indexLabel.frame = CGRectMake(0, 0, WIDTH, HEIGHT);
    self.indexLabel.textAlignment = NSTextAlignmentCenter;
}
- (void)dealloc
{
    [_indexLabel release];
    [super dealloc];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end

